package com.scalar.chiptrack.operations.process.forms;

import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.operations.process.dao.FabStage;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;

import org.apache.struts.action.ActionMapping;

/**  Form bean Object To Group the Fab Satgs
 * Created by Chandra Shekar.
 * Date: May 2, 2005
 * Time: 1:36:58 PM
 */
public class GroupFabStageForm extends ChipTrackActionForm implements Serializable
 {
    private FabStage fabStage        = new FabStage() ;
    private String   fabstageName    = null;

    public GroupFabStageForm()
    {
	}

    public FabStage getFabStage() {
        return fabStage;
    }

    public void setFabStage(FabStage fabStage) {
        this.fabStage = fabStage;
    }

    public String getFabstageName() {
        return fabstageName;
    }

    public void setFabstageName(String fabstageName) {
        this.fabstageName = fabstageName;
    }

    public void reset( ActionMapping  mapping, HttpServletRequest request )
    {
        fabstageName = null;
        fabStage.setIsDefault( false ) ;
    }
}